<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 87 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts87p0{position:absolute;left:106px;top:97px;}
 .ts87p1{position:absolute;left:352px;top:97px;}
 .ts87p3{position:absolute;left:672px;top:97px;}
 .ts87p7{position:absolute;left:106px;top:113px;}
 .ts87p8{position:absolute;left:706px;top:1026px;}
 .ts87p9{position:absolute;left:331px;top:1044px;}
 .ts87p13{position:absolute;left:106px;top:146px;}
 .ts87p15{position:absolute;left:106px;top:220px;}
 .ts87p17{position:absolute;left:106px;top:256px;}
 .ts87p18{position:absolute;left:106px;top:275px;}
 .ts87p20{position:absolute;left:106px;top:293px;}
 .ts87p22{position:absolute;left:106px;top:312px;}
 .ts87p23{position:absolute;left:106px;top:330px;}
 .ts87p25{position:absolute;left:106px;top:367px;}
 .ts87p28{position:absolute;left:106px;top:385px;}
 .ts87p30{position:absolute;left:106px;top:404px;}
 .ts87p31{position:absolute;left:106px;top:422px;}
 .ts87p32{position:absolute;left:106px;top:440px;}
 .ts87p34{position:absolute;left:106px;top:459px;}
 .ts87p35{position:absolute;left:106px;top:477px;}
 .ts87p36{position:absolute;left:106px;top:496px;}
 .ts87p38{position:absolute;left:106px;top:514px;}
 .ts87p39{position:absolute;left:106px;top:532px;}
 .ts87p40{position:absolute;left:106px;top:551px;}
 .ts87p42{position:absolute;left:106px;top:569px;}
 .ts87p43{position:absolute;left:106px;top:588px;}
 .ts87p44{position:absolute;left:106px;top:606px;}
 .ts87p46{position:absolute;left:106px;top:624px;}
 .ts87p47{position:absolute;left:106px;top:643px;}
 .ts87p49{position:absolute;left:106px;top:661px;}
 .ts87p50{position:absolute;left:106px;top:680px;}
 .ts87p51{position:absolute;left:106px;top:698px;}
 .ts87p53{position:absolute;left:106px;top:716px;}
 .ts87p54{position:absolute;left:106px;top:735px;}
 .ts87p55{position:absolute;left:106px;top:753px;}
 .ts87p57{position:absolute;left:106px;top:772px;}
 .ts87p58{position:absolute;left:106px;top:790px;}
 .ts87p59{position:absolute;left:106px;top:808px;}
 .ts87p61{position:absolute;left:106px;top:827px;}
 .ts87p62{position:absolute;left:106px;top:845px;}
 .ts87p63{position:absolute;left:106px;top:864px;}
 .ts87p65{position:absolute;left:106px;top:882px;}
 .ts87p67{position:absolute;left:106px;top:900px;}
 .ts87p69{position:absolute;left:384px;top:918px;}
 .ts87p71{position:absolute;left:304px;top:936px;}
 .ts87p73{position:absolute;left:161px;top:956px;}
 .ts87p75{position:absolute;left:303px;top:956px;}
 .ts87p76{position:absolute;left:303px;top:974px;}
 .ts87p78{position:absolute;left:552px;top:366px;}
 .ts87p80{position:absolute;left:552px;top:378px;}
 .ts87p81{position:absolute;left:552px;top:390px;}
 .ts87p82{position:absolute;left:552px;top:402px;}

 /* Font Styles */
 .ft0p87{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p87{font-weight:normal;}
 .ft2p87{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p87{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p87{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p87{font-style:normal;font-weight:normal;font-size:32px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft6p87{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft7p87{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft8p87{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft9p87{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft10p87{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground87{position:absolute;left:105px;top:366px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index86.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;87 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index88.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground87><img src="./background87.png" width="633" height="689" border="0" alt=""></div>
<div class=ts87p0><span class="ft0p87"> </span></div>
<div class=ts87p1><span class="ft0p87">Gravitybox Schedule Primer<span class="ft1p87"> </span></span></div>
<div class=ts87p3><span class="ft0p87">Page 85&nbsp; </span></div>
<div class=ts87p7><span class="ft2p87"> </span></div>
<div class=ts87p8><span class="ft3p87"> </span></div>
<div class=ts87p9><span class="ft4p87">1998&#45;2004 Gravitybox Software LLC<span class="ft3p87"> </span></span></div>
<div class=ts87p13><span class="ft5p87">Chapter 8 </span></div>
<div class=ts87p15><span class="ft6p87">Conflicts </span></div>
<div class=ts87p17><span class="ft7p87">In scheduling, conflicts are a part of life. There will be many times when conflicts are </span></div>
<div class=ts87p18><span class="ft7p87">unavoidable. There may even be times when they are desirable. In any case, no </span></div>
<div class=ts87p20><span class="ft7p87">schedule would be complete without some sort of conflict handling.&nbsp; </span></div>
<div class=ts87p22><span class="ft7p87"> </span></div>
<div class=ts87p23><span class="ft6p87">What is a Conflict? </span></div>
<div class=ts87p25><span class="ft7p87">GbSchedule has a read&#45;only collection named Conflicts. </span></div>
<div class=ts87p28><span class="ft7p87">The developer may not add any elements to the collection </span></div>
<div class=ts87p30><span class="ft7p87">nor may he remove any. When ScheduleItems are added to </span></div>
<div class=ts87p31><span class="ft7p87">a schedule, they may or may not conflict with other appointments on the schedule. After </span></div>
<div class=ts87p32><span class="ft7p87">an insert, the newly added object is checked, to verify whether it conflicts with any other </span></div>
<div class=ts87p34><span class="ft7p87">objects in the ScheduleItems collection. If it does, it is added to the Conflicts collection. </span></div>
<div class=ts87p35><span class="ft7p87">Any time that one of the appointment&#146;s properties StartDate, Room, StartTime, or </span></div>
<div class=ts87p36><span class="ft7p87">Length is changed, the Conflicts collection is rechecked to determine whether the </span></div>
<div class=ts87p38><span class="ft7p87">appointment should be added or removed from the Conflicts collection. Only items that </span></div>
<div class=ts87p39><span class="ft7p87">should be in the Conflicts collection will be there. Since a change of any of many display </span></div>
<div class=ts87p40><span class="ft7p87">properties (IsEvent, Length, Room, StartDate, and StartTime) on an appointment could </span></div>
<div class=ts87p42><span class="ft7p87">cause the appointment to potentially conflict with another appointment, the </span></div>
<div class=ts87p43><span class="ft7p87">ScheduleItems collection must be checked for Conflicts after these property changes. If </span></div>
<div class=ts87p44><span class="ft7p87">the properties of a particular appointment are changed, the effect might not only </span></div>
<div class=ts87p46><span class="ft7p87">influence this appointment but others as well, since it takes at least two appointments to </span></div>
<div class=ts87p47><span class="ft7p87">conflict. </span></div>
<div class=ts87p49><span class="ft7p87"> </span></div>
<div class=ts87p50><span class="ft7p87">The Conflicts collection is located on the ScheduleItems collection object. It has no </span></div>
<div class=ts87p51><span class="ft7p87">properties and only a few methods. Its methods are defined in Table 8.1. There is only a </span></div>
<div class=ts87p53><span class="ft7p87">minimal amount of functionality needed, for this collection. Even though minimal, this </span></div>
<div class=ts87p54><span class="ft7p87">functionality still serves the needed purpose. The collection is actually a collection of </span></div>
<div class=ts87p55><span class="ft7p87">conflict groups. Each group object holds a collection of appointments. Each </span></div>
<div class=ts87p57><span class="ft7p87">ScheduleItem is in exactly one group. If there are no conflicts there will be one group for </span></div>
<div class=ts87p58><span class="ft7p87">each ScheduleItem. If there are N ScheduleItems, there are also N groups in the </span></div>
<div class=ts87p59><span class="ft7p87">Conflicts collection, when there are no conflicts. If there are ScheduleItems that conflict </span></div>
<div class=ts87p61><span class="ft7p87">with each another, they will be in the same conflict group. A group signifies a block of </span></div>
<div class=ts87p62><span class="ft7p87">appointments such that occupy a contiguous block of schedule space. All of the </span></div>
<div class=ts87p63><span class="ft7p87">appointments may not conflict with all others, but together as a group there is no free </span></div>
<div class=ts87p65><span class="ft7p87">space from the groups starting boundary to its end. </span></div>
<div class=ts87p67><span class="ft7p87">&nbsp; </span></div>
<div class=ts87p69><span class="ft8p87">Table 8.1 </span></div>
<div class=ts87p71><span class="ft8p87">Conflicts Collection Definition </span></div>
<div class=ts87p73><span class="ft7p87">Count </span></div>
<div class=ts87p75><span class="ft7p87">This method returns the number of objects in the Conflicts </span></div>
<div class=ts87p76><span class="ft7p87">collection. This number will be between 0 and N, where N is </span></div>
<div class=ts87p78><span class="ft9p87">Quick Tip </span></div>
<div class=ts87p80><span class="ft10p87">A conflict occurs when two or more </span></div>
<div class=ts87p81><span class="ft10p87">appointments share the same </span></div>
<div class=ts87p82><span class="ft10p87">scheduled space. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
